package com.thti.mecool.client.base;

import java.util.ArrayList;
import java.util.List;

import android.app.Activity;
import android.content.Context;

public class Cache {

	public static List<Activity> list = new ArrayList<Activity>();
	private static Context mContext;

	/**
	 * 保存打开的Activity(也就是要关闭的Activity)
	 * 
	 * @param activity
	 */
	public static void add(Activity activity) {
		list.add(activity);
	}

	/**
	 * 获取临时的Context对象
	 * 
	 * @param mContext
	 */
	public static Context getmContext() {
		return mContext;
	}
	/**
	 * 保存临时的Context对象
	 * 
	 * @param mContext
	 */
	public static void setmContext(Context mContext) {
			Cache.mContext = mContext;
	}
}
